import request from "@/utils/http"

export function list(params: any) {
    return request({
        method: "get",
        url: "/biosample/flupplan/list",
        params
    })
}

// 样本来源
export function source(params: any) {
    return request({
        method: "get",
        url: "/biosample/donorsinfo/drop-list",
        params
    })
}

// 新增
export function addNew(data: any) {
    return request({
        method: "post",
        url: "/biosample/flupplan/save",
        data  // 添加data参数传递表单数据
    })
}

// 修改
export function update(data: any) {
    return request({
        method: "post",
        url: "/biosample/flupplan/update",
        data
    })
}

//删除
export function deleteData(data: any) {
    return request({
        method: "post",
        url: "/biosample/flupplan/delete",
        data
    })
}
